﻿
stringfilter:host,lang
;enable string filter in configuration for frontdoor first
valueinterval:rnd
;enable value interval in configuration for frontdoor in debug folder first
valueinterval:rnd
;also enable value interval in configuration for frontdoor in frontdoor folder, it uses to redirect 10% traffics to frontdoor.test

[frontdoor]

;hddos configurations
urlEnable=false
resourceEnable=false
ipEnable=false
refererEnable=false
resourceCount=64

;frontdoor configurations
port=900
threadCount=64
staticCacheSize=1024
staticCacheLife=18000000
maintain=maintain.txt
error=errorpage.html
reject=reject.txt
retrytimes=1024
holdtime=1800000 ;30 minutes
sleeptime=100
delayjumpDelay=5

;supported filters for following rules
;httpcontext filters
;   host - host name in request
;   port - port in request
;   ua - user agent in request
;   ref - referer of request
;   ip - user ip
;   lang - language of user browser
;frontdoor filters
;   urlhash - hash value of url [0, maxUInt32], according to implement of string.GetHashCode()
;   pqhash - hash value of path and query [0, maxUInt32], according to implement of string.GetHashCode()
;   rnd - a random value, for randomly distributing [0, 99]
;as enabled stringfilter, so * and ? is workable here
;also valueinterval, 0-100 <means [0,100)> or [0,100] is workable here, but value of number only

[redirections]
/&host:a.*=http://b.hzj-jie.net/
/&host:c.*&lang:en*=http://d.hzj-jie.net/

[rules]
/&host:counterDraw.*=http://localhost:95/
;/&rnd:[0,50)=http://hzj-jie-t43/
;/&rnd:[50,100)=http://hzj-jie-x31/
DEFAULT=http://hzj-jie-x31/

[staticfiles]
/__readme.txt__&lang:en-us*=readme.en.txt|text/plain\; charset=utf-8
/__readme.txt__=readme.zh.txt|text/plain\; charset=utf-8
/readme.txt&lang:en*=readme.en.txt|text/plain\; charset=utf-8
/readme.txt=readme.zh.txt|text/plain\; charset=utf-8
/__readme.en.txt__=readme.en.txt|text/plain\; charset=utf-8
/readme.en.txt=readme.en.txt|text/plain\; charset=utf-8
/__readme.zh.txt__=readme.zh.txt|text/plain\; charset=utf-8
/readme.zh.txt=readme.zh.txt|text/plain\; charset=utf-8
/__changelog.txt__=changelog.txt|text/plain\; charset=utf-8
/changelog.txt=changelog.txt|text/plain\; charset=utf-8
/robots.txt=robots.txt|text/plain\; charset=utf-8
/knownissues.txt=knownissues.txt|text/plain\; charset=utf-8
/coming&host:hzj-jie.oicp.net&lang:en*=coming.en.html|text/html\; charset=utf-8
/coming&host:hzj-jie.oicp.net=coming.zh.html|text/html\; charset=utf-8
/coming.jpg&host:hzj-jie.oicp.net=coming.jpg|image/jpeg
/favicon.ico&host:unnamedhighland.gicp.net=wmgd.ico|image/x-icon
/favicon.ico&host:*wm8090.*=wmgd.ico|image/x-icon
debugmode$/__THIS_IS_A_TEST_REQUEST__=THIS_IS_A_NONEXISTING_FILE|text/plain\;;THIS_SHOULD_BE_COMMENT

